package com.hqyj.cloudAccount.service;

import com.hqyj.entity.Test.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * personal demo
 **/

@Component
@FeignClient(name = "spring-cloud-test")
public interface toTestOpenFeign {

//   localhost:8762/api/test/city/1891     ---get
    @GetMapping(value = "/api/test/city/{id}")
    City selectCity(@PathVariable int id) ;

}
